-- GENERATED SPELL FOR [Fel Overseer] --


function spell0_18796(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18796', 6290, 1)
end

function spell1_18796(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18796', 662, 1)
end

function spell2_18796(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18796', 5274, 1)
end

function spell3_18796(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(30471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18796', 532, 1)
end

function Sorts_18796(pUnit, Event)
local choix_sorts_18796 = math.random(0, 3)
if choix_sorts_18796 == 0 then
pUnit:RegisterEvent('spell0_18796', 1, 1)
end
if choix_sorts_18796 == 1 then
pUnit:RegisterEvent('spell1_18796', 1, 1)
end
if choix_sorts_18796 == 2 then
pUnit:RegisterEvent('spell2_18796', 1, 1)
end
if choix_sorts_18796 == 3 then
pUnit:RegisterEvent('spell3_18796', 1, 1)
end
end

function mob18796_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18796', math.random(1500, 3000), 1)
end

function mob18796_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18796_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18796_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18796, 1, 'mob18796_Action')
RegisterUnitEvent(18796, 2, 'mob18796_Leave')
RegisterUnitEvent(18796, 3, 'mob18796_Kill')
RegisterUnitEvent(18796, 4, 'mob18796_Die')
